import { createApp } from 'vue'
import App from '@/App.vue'
// element-plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//@ts-expect-error 忽略当前文件ts类型的检测否则有红色提示(打包会失败)
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
// Svg图标插件
import 'virtual:svg-icons-register'
// 自定义全局组件注册插件
import globalComponent from '@/components'
// 引入全局样式
import '@/styles/index.scss'
// 引入路由
import router from './router'
// 引入路由鉴权
import './permission'
// 引入pinia
import pinia from './store'
const app = createApp(App)
app.use(ElementPlus, {
  locale: zhCn,
})
app.use(globalComponent)
app.use(router)
app.use(pinia)
app.mount('#app')
